package org.x.usermod.service.impl;

import com.mybatisflex.core.BaseMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.x.usermod.entity.SysLog;
import org.x.usermod.mapper.SysLogMapper;
import org.x.usermod.service.ISysLogService;

@Service
public class SysLogServiceImpl implements ISysLogService {

    @Autowired
    private SysLogMapper sysLogMapper;

    @Override
    public int insert(SysLog logDTO) {
        SysLog sysLog = new SysLog();
        BeanUtils.copyProperties(logDTO, sysLog);
        return sysLogMapper.insert(sysLog);
    }

    @Override
    public BaseMapper getMapper() {
        return sysLogMapper;
    }
    // 实现方法...
}